  
  <div id="columns">
    <div id="centercol">
        <div class="content">
          <div class="post-title">
            <? if(isset($ctitle)) {?>
            <h2><?=$ctitle?></h2>
            <?}?>
          </div>
          <? if(isset($cdate)) {
                $mdate = date_create_from_format('Y-m-j', $cdate);
          ?>
          <p class="cdate"><?=date_format($mdate, 'j F Y' )?></p>      
          <?}?>
          <? if(isset($cmessage)) {
          ?>
          <p class="cdate"><?=$cmessage?></p>      
          <?}?>
          <!--/post-title -->
          <div class="blog-content">
            <? if(isset($isoverview) && $isoverview == true) {
                foreach($subnav as $item) {
            ?>
                <div class="content-item">
                    <h3><?=$item['title']?></h3>
                    <? if(isset($item['date'])) {
                        $idate = date_create_from_format('Y-m-j', $item['date']);
                    ?>
                    <p class="cdate"><?=date_format($idate, 'j F Y' )?></p>
                    <?}?>
                    <p><?=$item['sdesc']?></p>
                    <p class="readmore">
                        <a href="<?=base_url($item['url'])?>">Read More &gt;&gt;</a>
                    </p>
                </div>
            <?                    
                }
            } else {
               echo $cdata; 
            }  ?>
          </div>
      </div>
    </div>
    <div id="rightcol">
        <?
        if(isset($subnav) && is_array($subnav) && count($subnav) > 0) {
        ?>
        <div class="box_r">
            <div class="subnav">
                <h2><?=$subnavtitle?></h2>
                <ul>
                    <? foreach($subnav  as $nav ) { ?>
                    <li <? if( isset($nav['selected']) && $nav['selected'] == 1 ) echo "class=\"active\"" ?>><a href="<?=base_url($nav['url'])?>"><?=$nav['title']?></a></li>
                    <? } ?>
                </ul>
            </div>
        </div>
        <?
        }
        ?>
    </div>
    
    <!--/columns -->
    <div class="clr"></div>
  </div>
</div>
<!--/page -->

